package com.kaishengit.service;

import com.kaishengit.util.Stringutil;

public class PageService {
public int setPageNum(String p){
	int num = 1;
	Stringutil sg = new Stringutil();
	if(!sg.isNotEmpty(p)){
		num = 1;
	}else {
		try {
			num = Integer.parseInt(p);
		} catch (Exception e) {
			num = 1;
		}
	}
	return num;
}
}
